package com.example.douyin.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import com.example.lib_base_mvvm.entity.VideoEntity;

import java.util.List;

@Dao
public interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertVideo(VideoEntity.DataBean video);
    @Query("select * from video")
    List<VideoEntity.DataBean> query();
}
